package com.yangzheandroid.rxmvp.http.download;

/**
 * 进度
 */
public class ProgressBean {
    private long current;
    private long total;
    private boolean done;

    /**
     * 监听下载进度
     * @param current     已经下载或上传字节数
     * @param total        总字节数
     * @param done         是否完成
     */
    public ProgressBean(long current, long total, boolean done) {
        this.current = current;
        this.total = total;
        this.done = done;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }
}
